/*
using MyGeneration/Template/NHibernate (c) by Sharp 1.4
based on OHM (alvy77@hotmail.com)
*/
using System;
using System.Collections;
using System.Collections.Generic;

namespace Model
{

	[Serializable]
	public class Images 
	{
		#region Member Variables

		protected string _id;
		protected string _name;
		protected string _url;
		protected string _width;
		protected string _height;
		protected string _type;
		protected string _goodid;
		protected bool _bIsDeleted;
		protected bool _bIsChanged;
		#endregion
		
		
		#region Public Properties
		
		public virtual string Id
		{
			get { return _id; }
			set 
			{
			  if (value != null && value.Length > 36)
			    throw new ArgumentOutOfRangeException("Id", "Id value, cannot contain more than 36 characters");
			  _bIsChanged |= (_id != value); 
			  _id = value; 
			}
			
		}
		
		public virtual string Name
		{
			get { return _name; }
			set 
			{
			  if (value != null && value.Length > 50)
			    throw new ArgumentOutOfRangeException("Name", "Name value, cannot contain more than 50 characters");
			  _bIsChanged |= (_name != value); 
			  _name = value; 
			}
			
		}
		
		public virtual string Url
		{
			get { return _url; }
			set 
			{
			  if (value != null && value.Length > 50)
			    throw new ArgumentOutOfRangeException("Url", "Url value, cannot contain more than 50 characters");
			  _bIsChanged |= (_url != value); 
			  _url = value; 
			}
			
		}
		
		public virtual string Width
		{
			get { return _width; }
			set 
			{
			  if (value != null && value.Length > 50)
			    throw new ArgumentOutOfRangeException("Width", "Width value, cannot contain more than 50 characters");
			  _bIsChanged |= (_width != value); 
			  _width = value; 
			}
			
		}
		
		public virtual string Height
		{
			get { return _height; }
			set 
			{
			  if (value != null && value.Length > 50)
			    throw new ArgumentOutOfRangeException("Height", "Height value, cannot contain more than 50 characters");
			  _bIsChanged |= (_height != value); 
			  _height = value; 
			}
			
		}
		
		public virtual string Type
		{
			get { return _type; }
			set 
			{
			  if (value != null && value.Length > 50)
			    throw new ArgumentOutOfRangeException("Type", "Type value, cannot contain more than 50 characters");
			  _bIsChanged |= (_type != value); 
			  _type = value; 
			}
			
		}
		
		public virtual string GoodId
		{
			get { return _goodid; }
			set 
			{
			  if (value != null && value.Length > 36)
			    throw new ArgumentOutOfRangeException("GoodId", "GoodId value, cannot contain more than 36 characters");
			  _bIsChanged |= (_goodid != value); 
			  _goodid = value; 
			}
			
		}
		

		public virtual bool IsDeleted
		{
			get
			{
				return _bIsDeleted;
			}
			set
			{
				_bIsDeleted = value;
			}
		}

        public virtual bool IsChanged
		{
			get
			{
				return _bIsChanged;
			}
			set
			{
				_bIsChanged = value;
			}
		}
		
		#endregion 
		
	}
	
}
